<?php
if(mt_rand(0, 1))
{
	header("location:http://www.ibible.limewebs.com/");
	exit;
}
require_once("inc_all.php");
if (isset($_SERVER["HTTP_X_FORWARDED_FOR"]))
	$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
else
	$ip = $_SERVER["REMOTE_ADDR"];
date_default_timezone_set('Asia/Shanghai');
$GLOBALS['db']->insert("insert into fang_wen_zhe (ip,sj_fang_wen) values ('".$ip."','".date("Y-m-d H:i:s")."')");

//每日金句
$mei_ri = $GLOBALS['db']->select("select * from mei_ri_jin_ju limit 1");
$id_jing_jie = $mei_ri[0]['id_jing_jie'];
date_default_timezone_set('Asia/Shanghai');
if($mei_ri[0]['sj_geng_xin'] != date("Y-m-d"))
{
	$temp = $GLOBALS['db']->select("select id from jing_jie where bz_jin_ju = 'Y'");
	shuffle($temp);
	$id_jing_jie = $temp[0]['id'];
	$GLOBALS['db']->update(sprintf("update mei_ri_jin_ju set id_jing_jie = %d, sj_geng_xin = '%s' where id = 1", $id_jing_jie, date("Y-m-d")));
}
$sql = "select * from jing_jie where id = ".$id_jing_jie;
if(file_exists('cache/'.md5($sql).'.txt'))				//判断文件是否存在
{
	$jin_ju = unserialize(file_get_contents('cache/'.md5($sql).'.txt'));				//从文件中读取
}
else
{
	$result = $GLOBALS['db']->select($sql);
	$jin_ju = $result[0]['zhong_wen'].'('.$result[0]['j_zhong_wen_jian'].' '.$result[0]['zhang'].':'.$result[0]['jie'].')';
	file_put_contents('cache/'.md5($sql).'.txt', serialize($jin_ju));						//存入到文件中
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="description" content="在线查找圣经章节，支持中英文查找。" /><meta name="keywords" content="圣经, 中文, 圣经阅读, 和合本, 简体, 中文圣经, 中文圣经在线, 基督教, 旧约, 新约, Chinese, Bible, Holy Bible, Union Online" /><title>圣经在线查找</title><link rel="shortcut icon" href="favicon.ico" /><link rel="stylesheet" type="text/css" href="b.css" /><script type="text/javascript" src="jquery.js"></script><script type="text/javascript" src="scrolltopcontrol.js"></script><script type="text/javascript" src="b.js"></script></head><body><div id="wrap"><div class="header"><div class="logo"><img src="images/logo.gif" alt="" title="" border="0" /></div><div id="menu"><ul><li class="selected"><a onmousedown="shou_cang_ben_zhan(this, window.location, document.title)" href="javascript:void(0);">收藏本站</a></li></ul></div></div><div class="center_content"><div class="left_content" id="d_nei_rong"><div class="title"><span class="title_icon"><img src="images/bullet1.gif" alt="" title="" /></span>使徒信经</div><div class="feat_prod_box"><div class="prod_det_box"><div class="box_top"></div><div class="box_center"><p class="details">我信上帝，全能的父，创造天地的主；我信我主耶稣基督，上帝独生的子；因圣灵感孕，由童贞女马利亚所生；在本丢彼拉多手下受难，被钉于十字架，受死，埋葬；降在阴间，第三天从死人中复活；升天，坐在全能父上帝的右边；将来必从那里降临，审判活人死人。我信圣灵；我信圣而公之教会；我信圣徒相通；我信罪得赦免；我信身体复活；我信永生。</p><div class="clear"></div></div><div class="box_bottom"></div></div><div class="clear"></div></div><div class="title"><span class="title_icon"><img src="images/bullet5.gif" alt="" title="" /></span>每日金句</div><div class="feat_prod_box"><div class="prod_det_box"><div class="box_top"></div><div class="box_center"><p class="details"><?php echo $jin_ju ?></p><div class="clear"></div></div><div class="box_bottom"></div></div><div class="clear"></div></div><div class="title"><span class="title_icon"><img src="images/bullet2.gif" alt="" title="" /></span>诗 23:1-6</div><div class="feat_prod_box"><div class="prod_det_box"><div class="box_top"></div><div class="box_center"><p class="details"><span class="x_j">1</span> 耶和华是我的牧者。我必不至缺乏。<br/><br/><span class="x_j">2</span> 他使我躺卧在青草地上，领我在可安歇的水边。<br/><br/><span class="x_j">3</span> 他使我的灵魂苏醒，为自己的名引导我走义路。<br/><br/><span class="x_j">4</span> 我虽然行过死阴的幽谷，也不怕遭害。因为你与我同在。你的杖，你的竿，都安慰我。<br/><br/><span class="x_j">5</span> 在我敌人面前，你为我摆设筵席。你用油膏了我的头，使我的福杯满溢。<br/><br/><span class="x_j">6</span> 我一生一世必有恩惠慈爱随着我。我且要住在耶和华的殿中，直到永远。</p><div class="clear"></div></div><div class="box_bottom"></div></div><div class="clear"></div></div><div class="clear"></div></div><div class="right_content"><div class="title"><span class="title_icon"><img src="images/bullet3.gif" alt="" title="" /></span>圣经版本</div><div class="about"><p><input type="radio" id="yu_yan" name="yu_yan" value="1" checked="checked"><span>中文</span><input type="radio" id="yu_yan" name="yu_yan" value="2"><span>英文</span><input type="radio" id="yu_yan" name="yu_yan" value="3"><span>中英对照</span></p></div><div class="title"><span class="title_icon"><img src="images/bullet3.gif" alt="" title="" /></span>每日读经</div><div class="about"><p>卷<span id="d_juan"><select onchange="zj_onchange('j');" name="juan" id="juan" style="width:150px"><option selected="selected" value="-1">请选择</option><option class="x_j" value="-1">旧约</option><option value="1">创世记（创）</option><option value="2">出埃及记（出）</option><option value="3">利未记（利）</option><option value="4">民数记（民）</option><option value="5">申命记（申）</option><option value="6">约书亚记（书）</option><option value="7">士师记（士）</option><option value="8">路得记（得）</option><option value="9">撒母耳记上（撒上）</option><option value="10">撒母耳记下（撒下）</option><option value="11">列王记上（王上）</option><option value="12">列王记下（王下）</option><option value="13">历代记上（代上）</option><option value="14">历代记下（代下）</option><option value="15">以斯拉记（拉）</option><option value="16">尼希米记（尼）</option><option value="17">以斯帖记（斯）</option><option value="18">约伯记（伯）</option><option value="19">诗篇（诗）</option><option value="20">箴言（箴）</option><option value="21">传道书（传）</option><option value="22">雅歌（歌）</option><option value="23">以赛亚书（赛）</option><option value="24">耶利米书（耶）</option><option value="25">耶利米哀歌（哀）</option><option value="26">以西结书（结）</option><option value="27">但以理书（但）</option><option value="28">何西阿书（何）</option><option value="29">约珥书（珥）</option><option value="30">阿摩司书（摩）</option><option value="31">俄巴底亚书（俄）</option><option value="32">约拿书（拿）</option><option value="33">弥迦书（弥）</option><option value="34">那鸿书（鸿）</option><option value="35">哈巴谷书（哈）</option><option value="36">西番雅书（番）</option><option value="37">哈该书（该）</option><option value="38">撒迦利亚书（亚）</option><option value="39">玛拉基书（玛）</option><option value="-1"></option><option class="x_j" value="-1">新约</option><option value="40">马太福音（太）</option><option value="41">马可福音（可）</option><option value="42">路加福音（路）</option><option value="43">约翰福音（约）</option><option value="44">使徒行传（徒）</option><option value="45">罗马书（罗）</option><option value="46">哥林多前书（林前）</option><option value="47">哥林多后书（林后）</option><option value="48">加拉太书（加）</option><option value="49">以弗所书（弗）</option><option value="50">腓立比书（腓）</option><option value="51">歌罗西书（西）</option><option value="52">帖撒罗尼迦前书（帖前）</option><option value="53">帖撒罗尼迦后书（帖后）</option><option value="54">提摩太前书（提前）</option><option value="55">提摩太后书（提后）</option><option value="56">提多书（多）</option><option value="57">腓利门书（门）</option><option value="58">希伯来书（来）</option><option value="59">雅各书（雅）</option><option value="60">彼得前书（彼前）</option><option value="61">彼得后书（彼后）</option><option value="62">约翰一书（约一）</option><option value="63">约翰二书（约二）</option><option value="64">约翰三书（约三）</option><option value="65">犹大书（犹）</option><option value="66">启示录（启）</option></select></span><br/>章<span id="d_zhang"><select id="zhang" name="zhang" style="width:150px"><option value="-1">请选择</option></select></span><br/>节<span id="d_jie"><select id="jie" name="jie" style="width:150px"><option value="-1">请选择</option></select></span><br/><br/><div align="center"><input class="register" type="button" id="xs_zhang" name="xs_zhang" value="精确到章">&nbsp;&nbsp;&nbsp;<input class="register" type="button" id="xs_jie" name="xs_jie" value="精确到节"></div></p></div><div class="title"><span class="title_icon"><img src="images/bullet3.gif" alt="" title="" /></span>查找经文</div><div class="about"><p>中文经文的关键字、词、句<br/><input class="contact_input" type="text" id="guan_jian_zi" name="guan_jian_zi" value="" maxlength="70"><br/><br/><div align="right"><input class="register" type="button" id="cha_zhao" name="cha_zhao" value="查找经文"></div></p></div><div class="about"><p>微博<img src="images/wb.png"></img><br/><a href="http://weibo.com/sobible" target="_blank">http://weibo.com/sobible</a></p></div></div><div class="clear"></div></div><div class="footer"><div class="left_footer"><img src="images/footer_logo.gif" alt="" title="" /></div><div class="right_footer"><a target="_blank" href="http://www.is777.com">基督徒网址</a><a target="_blank" href="http://www.god123.cn">基督徒常用网址大全</a><a target="_blank" href="http://www.church114.cn">基督教114</a><a target="_blank" href="http://www.jidunet.cn/siteguide/">基督网</a></div></div></div></body></html><?php require_once("tong_ji.php");?>